package com.example.shop_front_api.constant;

public class ShopConstant {
    // 购物车最大购买数量
    public static final int QUANTITY_MAX = 99;

    // 商品状态 - 保持向后兼容
    public static final int GOODS_STATUS_OFF = 0;
    public static final int GOODS_STATUS_ON = 1;

    // 商品状态 - 新增Product前缀版本
    public static final int PRODUCT_STATUS_OFF = 0;
    public static final int PRODUCT_STATUS_ON = 1;

    // 选中状态
    public static final int SELECTED_NO = 0;
    public static final int SELECTED_YES = 1;

    // 响应码
    public static final int SUCCESS_CODE = 200;
    public static final int ERROR_CODE = 500;

    // 业务响应码
    public static final int PRODUCT_NOT_FOUND = 1001;
    public static final int PRODUCT_OFF_SHELF = 1002;
    public static final int PRODUCT_OUT_OF_STOCK = 1003;
    public static final int CART_OPERATION_FAILED = 2001;
    public static final int PARAM_INVALID = 4001;
}